package controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
//Restful......
// url=/user/2/book/1/author get
@RequestMapping(value="t1/*.a")
public class CommonController {
	@GetMapping
	public String test1() {
		System.out.println("test1....");
		return "success";
	}
	@PostMapping
	public String test11() {
		System.out.println("test11....");
		return "success";
	}
	
}
